<?php
    class chat_commentBlock_Controller extends controllerBase
    {
        public function process()
        {
            core::checkSession();
            $oDatabase = new database();
            $uri = URL::getLink('product/id/'.$this->aParams['product_id']);
            $this->aParams['idproduct'] = $this->aParams['product_id'];
            $graph = new Graphite();
            $graph->ns('bus',URL::getLink('id/bussiness'));
            $graph->setDebug( true );
            $graph->load($uri);  
            $this->aParams['name'] = $graph->resource($uri)->get('bus:#name');
            $str = $graph->resource($uri)->get('bus:#ownUser');
            if( $str!='')
            {
                $uriuser = $graph->resource($uri)->get('bus:#ownUser');
                $graph->load($uriuser );
                $this->aParams['givenName'] = $graph->resource($uriuser)->get('foaf:givenName');
            }

        }
    
    }
?>
